<div id="room-manage-view">
  <!--<div class="pageheader">-->
    <!--&lt;!&ndash;公寓&nbsp;-&nbsp;&ndash;&gt;-->
    <!--<h2><i class="fa fa-home"></i>{{info.apartmentName}}</h2>-->
    <!--<div class="al-header-right">-->
      <!--<button type="button" class="btn btn-primary" ng-click="newData()">新增房间</button>-->
    <!--</div>-->
  <!--</div>-->
  <div class="page">
    <div class="al-list-container">
      <form class="form-horizontal al-search-container" role="form">
        <div class="form-group">
          <label class="col-sm-2 control-label">所属公寓</label>
          <div class="col-sm-2">
            <div class="form-control info-text">{{info.apartmentName}}</div>
          </div>
          <label class="col-sm-2 control-label">楼栋</label>
          <div class="col-sm-2">
            <select ng-model="search.buildingId"
                    class="form-control" ng-change="loadFloor()"
                    ng-options="option.id as option.name for option in buildingList"></select>
          </div>
          <label class="col-sm-2 control-label">楼层</label>
          <div class="col-sm-2">
            <select ng-model="search.floor"
                    class="form-control"
                    ng-options="option.id as option.name for option in floorList"></select>
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-4 col-sm-offset-4">
            <input type="text" ng-model="search.searchStr" placeholder="房间号，房间ID" class="form-control">
          </div>
          <div class="col-sm-2 ">
            <button type="button" ng-click="queryData()" class="btn btn-success al-float-right">查询</button>
          </div>
          <div class="col-sm-2">
            <button type="button" ng-click="resetSearch()" class="btn btn-default">重置</button>
          </div>
        </div>
      </form>
      <table ng-table="tableParams"
             class="table  table-bordered table-striped table-condensed al-table-container">
        <thead>
        <tr>
          <!--<td>所属公寓ID</td>-->
          <!--<td>所属公寓名称</td>-->
          <td>楼栋名称</td>
          <td>楼层ID</td>
          <td>房间ID</td>
          <td>房间号</td>
          <td>面积</td>
          <td>月租金</td>
          <td>押金</td>
          <td>付款方式</td>
          <td>状态</td>
          <td>是否禁用</td>
          <td>操作</td>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in $data">
          <!--<td>{{item.uuid}}</td>-->
          <!--<td>{{item.apartmentName}}</td>-->
          <td>{{item.buildingName}}</td>
          <td>{{item.floor}}</td>
          <td>{{item.uuid}}</td>
          <td>{{item.houseNo}}</td>
          <td>{{item.area}}</td>
          <td>{{item.salePrice}}</td>
          <td>{{item.depositPrice}}</td>
          <td>{{item.payType|binConstantTransfer:payWayList}}</td>
          <td>{{item.status|constantTransfer:roomStatusList}}</td>
          <td>{{item.enabled|constantTransfer:enabledList}}</td>
          <td>
            <button class="btn btn-warning btn-sm" ng-click="editData(item)">编辑</button>
          </td>
        </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>
